home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / comm / net / atcp_tftp.lha / amitcp_telnet+ftp / arpa / ftp.h next >
C/C++ Source or Header  |  1993-08-13  |  2KB  |  72 lines

  1. /*    @(#)ftp.h 1.7 88/08/19 SMI; from UCB 5.2 5/30/85    */
  2. /*
  3.  * Copyright (c) 1983 Regents of the University of California.
  4.  * All rights reserved.  The Berkeley software License Agreement
  5.  * specifies the terms and conditions for redistribution.
  6.  */
  7.  
  8. /*
  9.  * Definitions for FTP
  10.  * See RFC-765
  11.  */
  12.  
  13. #ifndef _arpa_ftp_h
  14. #define _arpa_ftp_h
  15.  
  16. /*
  17.  * Reply codes.
  18.  */
  19. #define PRELIM        1    /* positive preliminary */
  20. #define COMPLETE    2    /* positive completion */
  21. #define CONTINUE    3    /* positive intermediate */
  22. #define TRANSIENT    4    /* transient negative completion */
  23. #define ERROR        5    /* permanent negative completion */
  24.  
  25. /*
  26.  * Type codes
  27.  */
  28. #define    TYPE_A        1    /* ASCII */
  29. #define    TYPE_E        2    /* EBCDIC */
  30. #define    TYPE_I        3    /* image */
  31. #define    TYPE_L        4    /* local byte size */
  32.  
  33. /*
  34.  * Form codes
  35.  */
  36. #define    FORM_N        1    /* non-print */
  37. #define    FORM_T        2    /* telnet format effectors */
  38. #define    FORM_C        3    /* carriage control (ASA) */
  39.  
  40. /*
  41.  * Structure codes
  42.  */
  43. #define    STRU_F        1    /* file (no record structure) */
  44. #define    STRU_R        2    /* record structure */
  45. #define    STRU_P        3    /* page structure */
  46.  
  47. /*
  48.  * Mode types
  49.  */
  50. #define    MODE_S        1    /* stream */
  51. #define    MODE_B        2    /* block */
  52. #define    MODE_C        3    /* compressed */
  53.  
  54. /*
  55.  * Record Tokens
  56.  */
  57. #define    REC_ESC        '\377'    /* Record-mode Escape */
  58. #define    REC_EOR        '\001'    /* Record-mode End-of-Record */
  59. #define REC_EOF        '\002'    /* Record-mode End-of-File */
  60.  
  61. /*
  62.  * Block Header
  63.  */
  64. #define    BLK_EOR        0x80    /* Block is End-of-Record */
  65. #define    BLK_EOF        0x40    /* Block is End-of-File */
  66. #define BLK_ERRORS    0x20    /* Block is suspected of containing errors */
  67. #define    BLK_RESTART    0x10    /* Block is Restart Marker */
  68.  
  69. #define    BLK_BYTECOUNT    2    /* Bytes in this block */
  70.  
  71. #endif /*!_arpa_ftp_h*/
  72.